使用過Linux系統的使用者,對於snmpwalk應該不陌生,它是對於系統環境效能監控的snmp服務的一項測試工具.
而我們今天要介紹的是在windows系統上來使用snmpwalk
首先從這裡下載 https://www.snmpsoft.com/cmd-tools/snmp-walk/
下載完成解壓縮,並使用命令模式進入解壓縮後的目錄
用法 SnmpWalk.exe -r:192.168.0.1 -p:161 -v:2c -c:public
Usage:
SnmpWalk.exe [-q] -r:host [-p:port] [-t:timeout] [-v:version] [-c:community]
[-ei:engine_id] [-sn:sec_name] [-ap:auth_proto] [-aw:auth_passwd]
[-pp:priv_proto] [-pw:priv_passwd] [-ce:cont_engine] [-cn:cont_name]
[-os:start_oid] [-op:stop_oid] [-csv]
-q Quiet mode (suppress header; print variable values only).
-r:host Name or network address (IPv4/IPv6) of remote host.
-p:port SNMP port number on remote host. Default: 161
-t:timeout SNMP timeout in seconds (1-600). Default: 5
-v:version SNMP version. Supported version: 1, 2c or 3. Default: 1
-c:community SNMP community string for SNMP v1/v2c. Default: public
-ei:engine_id Engine ID. Format: hexadecimal string. (SNMPv3).
-sn:sec_name SNMP security name for SNMPv3.
-ap:auth_proto Authentication protocol. Supported: MD5, SHA (SNMPv3).
-aw:auth_passwd Authentication password (SNMPv3).
-pp:priv_proto Privacy protocol. Supported: DES, IDEA, AES128, AES192,
AES256, 3DES (SNMPv3).
-pw:priv_passwd Privacy password (SNMPv3).
-cn:cont_name Context name. (SNMPv3)
-ce:cont_engine Context engine. Format: hexadecimal string. (SNMPv3)
-os:start_oid Object ID (OID) of first SNMP variable to walk. Default:.1
-op:stop_oid Object ID (OID) of last SNMP variable to walk.
Default: walk to the very last variable.
-csv Output in CSV (Comma Separated Values) format.
Examples:
SnmpWalk.exe -r:MainRouter -csv
SnmpWalk.exe -r:10.0.0.1 -t:10 -c:"admin_rw" -os:.1.3.6.1.2.1.1
SnmpWalk.exe -r:"::1" -v:3 -sn:SomeName -ap:MD5 -aw:SomeAuthPass -pp:DES
-pw:SomePrivPass -os:.1.3.6.1.2.1 -op:.1.3.6.1.2.65535 -q